Welcome to the home page for Retem

This page allows you to add information about your project.

Things you can do as a public user

  • Create a new ticket: Tickets are the life blood of a project. They can be anything from bug reports to todo items which can be assigned to folks involved in the project.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Templating engine for Ryan/Reia
Retem provides a convenient syntax and a lot of features available out of the box:

* variables
* flow control
* filters
* i18n
* template nesting

== Usage
renderer = Retem.new()
template = renderer.parse("""Total {apples|count:~apples}
{for apple in apples} {apple.color apple.weight|kg} {end}""")
apples = [{~color: 'red', ~weight: 0.2}, {~color: 'yellow', ~weight: 0.15}]
renderer.render({~apples: apples})
=> Total 2 apples
.. red 0.2kg
.. yellow 0.15kg

There are a lot of templating examples in README on http://github.com/pirj/ryan/tree/master/src/retem

basic templating0% complete

 

Completed 0 of 1 tickets

Pages